<div class="admin_left actions">
	<h3 style="font-size:20px;"><?php echo __('Manage more'); ?></h3>
	<ul>
	    <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Deliveries'), array('action' => 'index'),array('class' => 'consistentButton')); ?></li>
        <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Orders'), array('controller' => 'orders', 'action' => 'index'),array('class' => 'consistentButton')); ?> </li>
        <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('New Order'), array('controller' => 'orders', 'action' => 'add'),array('class' => 'consistentButton')); ?> </li>
        <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Delivery Statuses'), array('controller' => 'delivery_statuses', 'action' => 'index'),array('class' => 'consistentButton')); ?> </li>
        <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('New Delivery Status'), array('controller' => 'delivery_statuses', 'action' => 'add'),array('class' => 'consistentButton')); ?> </li>
	</ul>
</div>



<?php if ($current_customer['group_id'] == 1): ?>

    <div class="admin_right deliveries form">

    <div id=breadcrumbAdmin>
        <?php $this->Html->addCrumb('Add', '/Deliveries/add', array('style'=> ('color:#EB1E70; text-decoration:underline;'))); ?>
        <?php echo $this->Html->getCrumbs(' > ', array( 'text' => 'Deliveries', 'url' => array('controller' => 'deliveries', 'action' => 'index'), 'escape' => false)); ?>
    </div>

    <?php echo $this->Form->create('Delivery'); ?>
        <fieldset>
            <legend><?php echo __('Add Delivery'); ?></legend>
        <?php
            echo $this->Form->input('order_id');
            echo $this->Form->input('delivery_status_id');
            echo $this->Form->input('tracking');
            echo $this->Form->input('note');
			echo $this->Form->hidden('customerlink',array('value'=> Configure::read('constantVar.siteurl')."/customers/view/"));
        ?>
        </fieldset>
    <?php echo $this->Form->end(__('Submit')); ?>
    </div>
<?php else: ?>
        <?php echo "You can't view this page"; ?>
    <?php endif; ?>
